#ifndef BRIDGECONFIGDIALOG_H
#define BRIDGECONFIGDIALOG_H

#include <QDialog>
#include <QStringList>
#include "ui_bridgeconfigdialog.h"
#include "networkinfo.h"

class BridgeConfigDialog : public QDialog
{
    Q_OBJECT
public:
    explicit BridgeConfigDialog(const QList<ConnectionInfo>& candidates, QWidget *parent = nullptr, const QString& bridgeIp = QString(), const QString& bridgeMask = QString());
    ~BridgeConfigDialog();

    QString getBridgeName() const;
    QStringList getSelectedDevices() const;
    bool getStpEnabled() const;
    int getStpPriority() const;
    int getForwardDelay() const;
    int getHelloTime() const;
    int getMaxAge() const;
    void setBridgeName(const QString& name);
    void setSelectedDevices(const QStringList& devices);

private:
    Ui::BridgeConfigDialog ui;
    QList<ConnectionInfo> m_candidates;
    QStringList m_selectedDevices;
    QString m_bridgeIp;
    QString m_bridgeMask;
};

#endif // BRIDGECONFIGDIALOG_H 